var credentialService = (function () {
    function credentialService(http, route) {
        this.http = http;
        this.route = route;
    }
    credentialService.prototype.getList = function (skip, count) {
        return this.http({
            method: "GET",
            url: this.route.getUrl("credentials?skip={{skip}}&count={{count}}", {
                skip: skip,
                count: count
            })
        });
    };
    credentialService.prototype.add = function (appKey, appSecrect) {
        return this.http({
            method: "POST",
            url: this.route.getUrl("credentials"),
            data: {
                appKey: appKey,
                appSecrect: appSecrect,
            }
        });
    };
    credentialService.prototype.delete = function (id) {
        return this.http({
            method: "DELETE",
            url: this.route.getUrl("credentials/{{id}}", {
                id: id
            })
        });
    };
    return credentialService;
}());
app.service("credentialService", ["$http", 'routeService', credentialService]);
